﻿/// <reference path="./jquery-1.8.2.min.js" />
/// <reference path="./fourkill.util.js" />
/// <reference path="./fourkill.painters.js" />

function MistObject(distance, percentange) {
    this.locationRelativeToCamera = new ObjectViewLocation();
    this.locationRelativeToCamera.distance = distance;
    this.percentage = percentange;
    this.color = "rgba(240, 240, 240, 0.09)";

    this.updateLocation = function () { };
    this.getPainter = function () { return ObjectPainters.Mist; };
}
MistObject.prototype = new GameObject();

function TreeObject(treeType) {
    this.locationRelativeToCamera = new ObjectViewLocation();
    this.treeType = treeType == null ? "FourTriangleTree" : treeType;
    this.color = "rgb(0, " + util.random(60, 128) + ", " + util.random(0, 60) + ")";

    this.getPainter = function () { return treeType == "FourTriangleTree" ? ObjectPainters.FourTriangleTree : ObjectPainters.FourTriangleTree; };
}
TreeObject.prototype = new GameObject();

function MapMarkerObject(locationName) {
    this.locationRelativeToCamera = new ObjectViewLocation();
    this.name = locationName;
    this.getPainter = function () { return ObjectPainters.MapMarker; };
}
MapMarkerObject.prototype = new GameObject();